package com.example.springboot01.service;


import com.example.springboot01.entity.TimeTable;

public class TimeTableService {
    //这是定义函数。这样才能被TimeTableService类的对象所调用
    public TimeTable qryTimeTable(String x_no, String password, String stuTerm){
        //生成一门课的信息记录
        TimeTable timeTable = new TimeTable();
        timeTable.setCourseName("javaEE程序设计");
        timeTable.setTeacherName("唐红军");
        timeTable.setRoom("C111");
        timeTable.setXqj("礼拜2");
        timeTable.setStart(8);
        timeTable.setLength(5);
        System.out.println(timeTable.toString());

        return timeTable;
    }
}
